from django.shortcuts import *
from datetime import *

# Create your views here.

from django.http import *


class DjtkViews :
	def home_view(request, num) :	
		db = [
			('L', 405, 300), 
			('A', 260, 340), 
			('B', 0, 235), 
			('C', 0, 200), 
			('D', 40, 150), 
		]
		db1 = []
		for i in db :
			db1.append({
				'data': i, 
				'value': i[1] + i[2], 
			})
		dict_render = { 'db': db1 }
		return render_to_response('home.html', dict_render)
#		return render_to_response('home.html', { 'n': num })	
#		c = 'Hello, world!' + (datetime.now() + timedelta(int(num))).strftime('%Y年%m月%d日-%H:%M:%S')
#		return HttpResponse(c)

